


<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://displaytag.sf.net/el" prefix="display"%>
<%@ taglib uri="/WEB-INF/config/tld/fmt.tld" prefix="fmt"%>
<%@ taglib uri="http://ssh.org/selects" prefix="ssh"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> 
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path;
	String applicationPath = basePath + "/" + "application";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title></title>
		<link href="<%=path%>/css/jinmu_style.css" rel="stylesheet"
			type="text/css" />
		<script language="javascript" src="<%=path%>/js/util.js"></script>
		<base target="_self"/>
	</head>
	<body>

		<html:form styleId="yfProjectApprovalForm"
			action="popuSelectApprovalList.do?method=popuSelectApprovalList">
			<input type="hidden" id="projectManager" name="projectManager" value="${yfProjectApprovalForm.projectManager}" />
			<input type ="hidden" name="org" id="org" value="${loginUser.oid}"/>
			<input type="hidden" id="totalPage" value="${totalPage}" />
			<table cellspacing="0" cellpadding="0" width="98%" align="center"
				border="0" class="margtb5">
				<tr>
					<td align="left" class="padl5 lan12">
						<img src="<%=path%>/images/img-11.gif" width="12" height="12"></img>
						待选择项目列表
					</td>
				</tr>
			</table>


			<table cellspacing="3" cellpadding="0" width="98%" align="center"
				border="0" class="kuang2 margtb5 hei12">
				<tr>
							<td width="10%" align="right">
						项目名称：
					</td>
					<td width="10%">
						<html:text property="projectName" />
					</td>

					<td width="10%" align="right">
						项目编号：
					</td>
					<td width="10%">
						<html:text property="projectNo" />
					</td>
					<td width="10%" align="right">
						项目类型：
					</td>
					<td width="10%">
						<ssh:select propertyName="projectType" pid="PROJECT_TYPE" type="1"
							defaultName="${yfProjectApprovalForm.projectType}" />
					</td>
					<td width="10%" align="right">
						所属年度：
					</td>
					<td >
						 <html:select property="ownYear" style="width:100px">
					        <html:option value="0">--请选择--</html:option>
	                      	 <c:forEach var="i" begin="2010" end="2020" step="1">
	                      	       
	                      	 		<html:option value="${i}">${i}</html:option>
                             </c:forEach>
	                    </html:select>
	                    
	               
						<input class="buttonbg" style="cursor: hand" id="but_query"
							type="button"
							value="<bean:message key='com.manager.common.yfprojectapproval.query'  bundle="yfprojectapproval"/>"
							name="but_query" onClick="query();" />
					</td>

				</tr>

			</table>


			<table cellspacing="0" cellpadding="0" width="98%" align="center"
				border="0" class="margb5">
			
				<tr>
					<td>

						<fmt:bundle
							basename="com.application.yfprojectapproval.struts.ApplicationResources_yfprojectapproval">
							<display:table name="yfProjectApprovalList" class="simple"
								id="yfProjectApprovalTab" pagesize="15" partialList="true"
								style=" width:100%;" defaultorder="descending" size="resultSize"
								requestURI="listYfProjectApproval.do?method=getYfProjectApprovalPartialList">
								<display:column title="选择" sortable="false"
									style=" width:5%; text-align:center;">
									  <input type="hidden" id="${yfProjectApprovalTab.id}projectName" name="${yfProjectApprovalTab.id}projectName" value="${yfProjectApprovalTab.projectName}"/>
	<input type="hidden" name="${yfProjectApprovalTab.id}projectNo"  id="${yfProjectApprovalTab.id}projectNo" value="${yfProjectApprovalTab.projectNo}"/>		
	<input type="hidden" name="${yfProjectApprovalTab.id}projectOrg" id="${yfProjectApprovalTab.id}projectOrg" value="${yfProjectApprovalTab.projectOrg}"/>
	<input type="hidden" name="${yfProjectApprovalTab.id}projectType" id="${yfProjectApprovalTab.id}projectType" value="${yfProjectApprovalTab.projectType}"/>	
		<input type="hidden" name="${yfProjectApprovalTab.id}projectManager" id="${yfProjectApprovalTab.id}projectManager" value="${yfProjectApprovalTab.projectManager}"/>	
		<input type="hidden" name="${yfProjectApprovalTab.id}rname" id="${yfProjectApprovalTab.id}rname" value="${yfProjectApprovalTab.rname}"/>					
					<input type="checkbox" name='selectId' id="selectId" onclick="chooseProject('${yfProjectApprovalTab.id}');"	 />
					
								</display:column>
								<display:column title="项目名称"
									sortable="false" style="width:15%; text-align:center;">
									  <a href="#" onclick="showView('${yfProjectApprovalTab.id}')">${yfProjectApprovalTab.projectName}</a>
									</display:column>
								<display:column property="projectType"
									decorator="com.manager.commons.DictCodeColumnDecorator"
									dictCode="PROJECT_TYPE" title="项目类型" sortable="false"
									style="width:8%; text-align:center;" />
								<display:column property="projectOrg"
									decorator="com.manager.commons.DictCodeColumnDecorator"
									dictCode="PROJECT_ORG" title="项目机构" sortable="false"
									style="width:8%; text-align:center;" />
								<display:column property="projectNo"
									titleKey="com.application.yfprojectapproval.entity.yfprojectapproval.listpage.projectNo"
									sortable="false" style="width:8%; text-align:center;" />

								<display:column property="ownYear"
									titleKey="com.application.yfprojectapproval.entity.yfprojectapproval.listpage.ownYear"
									sortable="false" style="width:8%; text-align:center;" />

								<display:column property="rname"
									titleKey="com.application.yfprojectapproval.entity.yfprojectapproval.listpage.projectManager"
									sortable="false" style="width:15%; text-align:center;" />
							</display:table>
						</fmt:bundle>
					</td>
				</tr>
			</table>

		</html:form>
	</body>
</html>
<script>


function viewFlow(processId){
	var url = "<%=path%>/workflow/trace.jsp?processId=" + processId;
	openWindow(url,1100,500);
}

//查看
function showView(id){ 
    document.forms[0].action="viewYfProjectApproval.do?method=viewYfProjectApproval&id=" + id;
	document.forms[0].submit();

}

function query(){
	document.forms[0].action="popuSelectApprovalList.do?method=popuSelectApprovalList";
	document.forms[0].submit();
}

this.returnValue = new Array();
function chooseProject(id){
    var projectName = id+'projectName';
    var projectNo = id+'projectNo';
    var projectOrg = id+'projectOrg';
    var projectType = id+'projectType';
    var projectManager = id+'projectManager';
     var rname = id+'rname';
    this.returnValue["projectName"]= $(projectName).value;
    this.returnValue["projectNo"]= $(projectNo).value;
    this.returnValue["projectOrg"]= $(projectOrg).value;
    this.returnValue["projectType"]= $(projectType).value;
    this.returnValue["projectManager"]= $(projectManager).value;
     this.returnValue["rname"]= $(rname).value;
    window.close();
}
</script>
